package sipus.database.model;

// Generated Apr 16, 2010 2:27:16 PM by Hibernate Tools 3.2.4.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Bank generated by hbm2java
 */
@Entity
@Table(schema = "public", name = "log_user_actifity")
public class LogUserActifity implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2463822577548439808L;
	private Long id;
	private String oleh;

	public String toString() {
		return keterangan;
	}

	public void setOleh(String oleh) {
		this.oleh = oleh;
	}

	public String getOleh() {
		return oleh;
	}

	private Date tanggal_dirubah = new Date();

	public void setTanggal_dirubah(Date tanggal_dirubah) {
		this.tanggal_dirubah = tanggal_dirubah;
	}

	@Temporal(TemporalType.TIMESTAMP)
	public Date getTanggal_dirubah() {
		return tanggal_dirubah;
	}

	private String keterangan;
	private String keterangan12;
	private String keterangan1;
	private String img;
	private String event;
	private Date waktu = new Date();
	private DetailLogLogin detailLogLogin;
	private Integer activityType;
	private String classCalled;

	public LogUserActifity() {
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", insertable = false, unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "keterangan", nullable = true)
	public String getKeterangan() {
		return this.keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public void setWaktu(Date waktu) {
		this.waktu = waktu;
	}

	@Temporal(TemporalType.TIMESTAMP)
	public Date getWaktu() {
		return waktu;
	}

	public void setDetailLogLogin(DetailLogLogin detailLogLogin) {
		this.detailLogLogin = detailLogLogin;
	}

	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
	@JoinColumn(name = "detail_log_login", nullable = true)
	public DetailLogLogin getDetailLogLogin() {
		return detailLogLogin;
	}

	public void setKeterangan1(String keterangan1) {
		this.keterangan1 = keterangan1;
	}

	public String getKeterangan1() {
		return keterangan1;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getImg() {
		return img;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getEvent() {
		return event;
	}

	public void setKeterangan12(String keterangan12) {
		this.keterangan12 = keterangan12;
	}

	public String getKeterangan12() {
		return keterangan12;
	}

	public void setActivityType(Integer activityType) {
		this.activityType = activityType;
	}

	@Column(name = "activity_type", nullable = true)
	public Integer getActivityType() {
		return activityType;
	}

	public void setClassCalled(String classCalled) {
		this.classCalled = classCalled;
	}

	@Column(name = "class_called", nullable = true)
	public String getClassCalled() {
		return classCalled;
	}

}
